.class public final Lcom/burstly/lib/currency/UserAccount;
.super Ljava/lang/Object;
.source "UserAccount.java"

# interfaces
.implements Ljava/io/Serializable;


# static fields
.field private static final serialVersionUID:J = -0x5d33a12d2478adeL


# instance fields
.field private transient mCacheFilename:Ljava/lang/String;

.field private final mCurrencyAccounts:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Lcom/burstly/lib/currency/UserCurrencyAccount;",
            ">;"
        }
    .end annotation
.end field

.field private mDeviceId:Ljava/lang/String;

.field private mPubId:Ljava/lang/String;

.field private mUserId:Ljava/lang/String;

.field private mUserIdDeviceIdBased:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 27
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 62
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/burstly/lib/currency/UserAccount;->mCurrencyAccounts:Ljava/util/Map;

    return-void
.end method


# virtual methods
.method public getAllCurrencyAccounts()Ljava/util/Map;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Lcom/burstly/lib/currency/UserCurrencyAccount;",
            ">;"
        }
    .end annotation

    .prologue
    .line 149
    new-instance v0, Ljava/util/HashMap;

    iget-object v1, p0, Lcom/burstly/lib/currency/UserAccount;->mCurrencyAccounts:Ljava/util/Map;

    invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V

    return-object v0
.end method

.method public getCacheFilename()Ljava/lang/String;
    .locals 1

    .prologue
    .line 133
    iget-object v0, p0, Lcom/burstly/lib/currency/UserAccount;->mCacheFilename:Ljava/lang/String;

    return-object v0
.end method

.method public getCurrencyAccount(Ljava/lang/String;)Lcom/burstly/lib/currency/UserCurrencyAccount;
    .locals 1
    .parameter "currecny"

    .prologue
    .line 159
    iget-object v0, p0, Lcom/burstly/lib/currency/UserAccount;->mCurrencyAccounts:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/currency/UserCurrencyAccount;

    return-object v0
.end method

.method public getDeviceId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 77
    iget-object v0, p0, Lcom/burstly/lib/currency/UserAccount;->mDeviceId:Ljava/lang/String;

    return-object v0
.end method

.method public getPubId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 105
    iget-object v0, p0, Lcom/burstly/lib/currency/UserAccount;->mPubId:Ljava/lang/String;

    return-object v0
.end method

.method public getUserId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 119
    iget-object v0, p0, Lcom/burstly/lib/currency/UserAccount;->mUserId:Ljava/lang/String;

    return-object v0
.end method

.method public isNew()Z
    .locals 1

    .prologue
    .line 70
    iget-object v0, p0, Lcom/burstly/lib/currency/UserAccount;->mCacheFilename:Ljava/lang/String;

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isUserIdDeviceIdBased()Z
    .locals 1

    .prologue
    .line 84
    iget-boolean v0, p0, Lcom/burstly/lib/currency/UserAccount;->mUserIdDeviceIdBased:Z

    return v0
.end method

.method public setCacheFilename(Ljava/lang/String;)V
    .locals 0
    .parameter "cacheFilename"

    .prologue
    .line 140
    iput-object p1, p0, Lcom/burstly/lib/currency/UserAccount;->mCacheFilename:Ljava/lang/String;

    .line 141
    return-void
.end method

.method public setCurrencyAccount(Ljava/lang/String;Lcom/burstly/lib/currency/UserCurrencyAccount;)V
    .locals 1
    .parameter "currency"
    .parameter "currencyAccount"

    .prologue
    .line 169
    iget-object v0, p0, Lcom/burstly/lib/currency/UserAccount;->mCurrencyAccounts:Ljava/util/Map;

    invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 170
    return-void
.end method

.method public setDeviceId(Ljava/lang/String;)V
    .locals 0
    .parameter "deviceId"

    .prologue
    .line 98
    iput-object p1, p0, Lcom/burstly/lib/currency/UserAccount;->mDeviceId:Ljava/lang/String;

    .line 99
    return-void
.end method

.method public setPubId(Ljava/lang/String;)V
    .locals 0
    .parameter "pubId"

    .prologue
    .line 112
    iput-object p1, p0, Lcom/burstly/lib/currency/UserAccount;->mPubId:Ljava/lang/String;

    .line 113
    return-void
.end method

.method public setUserId(Ljava/lang/String;)V
    .locals 0
    .parameter "userId"

    .prologue
    .line 126
    iput-object p1, p0, Lcom/burstly/lib/currency/UserAccount;->mUserId:Ljava/lang/String;

    .line 127
    return-void
.end method

.method public setUserIdDeviceIdBased(Z)V
    .locals 0
    .parameter "userIdDeviceIdBased"

    .prologue
    .line 91
    iput-boolean p1, p0, Lcom/burstly/lib/currency/UserAccount;->mUserIdDeviceIdBased:Z

    .line 92
    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .prologue
    .line 174
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "UserAccount [mPubId="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/currency/UserAccount;->mPubId:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", mUserId="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/currency/UserAccount;->mUserId:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", mCurrencyAccounts="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/currency/UserAccount;->mCurrencyAccounts:Ljava/util/Map;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "]"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
